﻿using System;
using Microsoft.AspNet.SignalR;
using Owin;

namespace PicShare.Server
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
          
            var config = new HubConfiguration
            {
                EnableJSONP = true,
                EnableJavaScriptProxies = true,
                
            };
           
            GlobalHost.Configuration.DisconnectTimeout = TimeSpan.FromSeconds(6);
            GlobalHost.Configuration.KeepAlive = null;
            GlobalHost.Configuration.ConnectionTimeout = TimeSpan.FromSeconds(300);


            app.MapSignalR(config);
        }
    }
}